Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix volume adjust key repeat not working as expected #31282

Merged
merged 2 commits into from
Dec 30, 2024

Conversation

peppy
Copy link
Member

@peppy peppy commented Dec 26, 2024

Regressed in #31146.

Closes part of #31267.

We don't have an easy way to test key repeat in tests unfortunately.

@bdach bdach self-requested a review December 26, 2024 08:26
Comment on lines +1433 to +1435
case GlobalAction.DecreaseVolume:
case GlobalAction.IncreaseVolume:
return volume.Adjust(e.Action);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this block duplicated now? another copy of it is still there lower down

osu/osu.Game/OsuGame.cs

Lines 1447 to 1449 in e752531

case GlobalAction.DecreaseVolume:
case GlobalAction.IncreaseVolume:
return volume.Adjust(e.Action);

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oversight from lack of self checks for sure

@bdach bdach self-requested a review December 30, 2024 07:43
@bdach bdach merged commit f18114d into ppy:master Dec 30, 2024
10 checks passed
@peppy peppy deleted the fix-volume-key-repeat branch January 4, 2025 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants